<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $model common\models\WarehouseSearch */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="content-search">

    <?php $form = ActiveForm::begin([
        'options'=>['data-pjax' => 1,'class' => 'layui-form layui-form-pane'],
        'enableClientValidation'=>false,
        'action' => ['index'],
        'method' => 'get',      
        'fieldConfig' => [
            'labelOptions' => ['class' => 'layui-form-label',],
            'inputOptions' => ['class' => 'layui-input','style'=>'width:100px,webkit-appearance:select'],
        ],
    ]); ?>

	<div class="layui-inline">
    	<label class="layui-form-label">仓库搜索</label>
        <div class="layui-input-inline">
        <?= $form->field($model, 'warehouse_name')->label(false); ?>
        </div>
    </div>
    
    <div class="layui-inline">
    	<label class="layui-form-label">公司名称</label>
        <div class="layui-input-inline">
        <?= $form->field($model, 'company_id')->dropDownList(common\models\CompanySearch::getAllCompany(),['class' => 'formSelect','style'=>'display:block;width:auto;height:38px;border-color:#e6e6e6']) ->label(false) ?>
        </div>
    </div>
   
   <div class="layui-inline">
    	<div class="form-group field-companysearch-company_name">
        <?= Html::submitButton('搜索', ['class' => 'layui-btn']) ?>
        <?= Html::a('新增',['create'], ['class' => 'layui-btn']) ?>
        </div>
 	</div>

    <?php ActiveForm::end(); ?>

</div>
